<?php
/**
 * Account.php
 * @author Winbeek 2012
 * @since 21 July 2012
 * @version $Id: Account.php 17 2012-07-24 15:01:50Z winbeek $
 */

final class Account extends Nette\Application\UI\Control
{
	/** @var \Nette\Database\Table\ActiveRow $account */
	private $account;

	/**
	 * @param Nette\Database\Table\ActiveRow $account
	 */
	public function __construct(Nette\Database\Table\ActiveRow $account)
	{
		$this->account = $account;
	}

	public function render()
	{
		$this->template->account = $this->account;

		$this->template->setFile(__DIR__ . '/Account.latte');
		$this->template->render();
	}

	protected function createComponentGravatar()
	{
		return new Gravatar();
	}
}
